﻿@namespace SwashbucklerDiary.Rcl.Components
@inherits ShowContentDialogComponentBase

<MDialogExtension @ref="mDialogExtension"
                  MyValue="Visible"
                  MyValueChanged="InternalVisibleChanged"
                  Fullscreen="true"
                  Transition="">
    <MCard Class="fill-height primary-background"
           Ripple="false">
        <MToolbar Class="preview-image-dialog--toolbar"
                  Elevation="0">
            <MButton Icon="true"
                     OnClick="()=>InternalVisibleChanged(false)">
                <MIcon>
                    mdi-arrow-left
                </MIcon>
            </MButton>

            <MSpacer></MSpacer>

            <MButton Icon="true"
                     OnClick="SaveToLocal">
                <MIcon>
                    mdi-tray-arrow-down
                </MIcon>
            </MButton>
            <MButton Icon="true"
                     OnClick="Share">
                <MIcon>
                    mdi-share-variant-outline
                </MIcon>
            </MButton>
        </MToolbar>

        <div class="preview-image-dialog--image__wraper">
            <div id="@id" class="preview-image-dialog--image">
                <img src="@Src" />
            </div>
        </div>

    </MCard>
</MDialogExtension>
